using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Nicknames.Info
{
    /// <summary>
    /// Object which represent the reponse of the server to the client
    /// to send this object as response serialize it to XML
    /// </summary>
    [Serializable]
    public class NicksRequestInfo
    {
        #region " Properties "

        /// <summary>
        /// 
        /// </summary>
        private List<NickInfo> _givenNicks;
        [XmlArray("GivenNick")]
        public List<NickInfo> GivenNicks
        {
            get 
            {
                if (_givenNicks == null)
                {
                    _givenNicks = new List<NickInfo>();
                }
                return _givenNicks; 
            }
            set { _givenNicks = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        private List<NickInfo> _receivedNicks;
        [XmlArray("Received")]
        public List<NickInfo> ReveivedNicks
        {
            get
            {
                if (_receivedNicks == null)
                {
                    _receivedNicks = new List<NickInfo>();
                }
                return _receivedNicks;
            }
            set { _receivedNicks = value; }
        }


        #endregion properties

        #region " ctor "

        /// <summary>
        /// 
        /// </summary>
        public NicksRequestInfo()
        {
        }

        #endregion ctor
    }
}
